Log management methods
The following methods can be used to write messages to the Replicate log files.
Information note
-
To see messages in the log, you also need to set the "ADDONS" component (in the task's Log Settings) to the relevant logging level.
-
Pointers should use
%pp
in thestrFormat
log_error
Writes errors to the log.
Syntax
log_error (const char *strFormat, ...);
Parameters
Parameter | Type | Description |
---|---|---|
strFormat |
char |
The error msg format. |
log_warning
Writes warnings to the log.
Syntax
log_warning (const char *strFormat, ...);
Parameters
Parameter | Type | Description |
---|---|---|
strFormat |
char |
The warning message format. |
log_trace
Writes trace messages to the log.
Syntax
log_trace(const char *strFormat, ...);
Parameters
Parameter | Type | Description |
---|---|---|
strFormat |
char |
The trace message format. |